<?php
    class SiteLanguage
    {
        const EN = 'en';
        const RU = 'ru';
        const FR = 'fr';

        private static $names = array
        (
                self::EN => 'English',
                self::RU => 'Russian',
                self::FR => 'French'
        );

        public static function GetSupportedLanguages()
        {
            return self::$names;
        }

        public static function GetLanguageName( $language )
        {
            return isset(self::$names[ $language ]) ? self::$names[$language] : '';
        }

        public static function GetAdditionalLanguagesList()
        {
            return array( self::RU, self::FR );
        }
    }
?>